import Http from "@/http"

export function pageApi(params:any) {
    return Http.post('locale/page', params)
}

export function saveApi(params:any) {
    return params.id ? Http.put('locale/update/' + params.id, params) : Http.post('locale/add', params)
}

export function deleteApi(id) {
    return Http.delete('locale/delete/' + id)
}

export async function localeOptionsApi() {
    const res = await Http.get('locale/options')
    return res.data
}